//导入 Http 类, 填写正确的路径, 相对路径和绝对路径 
import { Http } from '../utils/http';


class Init {
  static code;
  static async get_code()
  {
    return (await promisic(wx.login)({})).code;
  }
  static async get_token()
  {
    return Init.code;
    return Http.request({
      url: 'wechat/index/login',
      data: { code: Init.code }
    })
  }
}


export { Init }